home *** CD-ROM | disk | FTP | other *** search
- Path: hydro.com!usenet
- From: Terje Mathisen <Terje.Mathisen@hda.hydro.com>
- Newsgroups: comp.lang.c,comp.lang.c++,comp.os.ms-windows.programmer.misc,comp.os.msdos.programmer,comp.programming
- Subject: Re: How to access miliseconds?
- Date: Sun, 18 Feb 1996 16:44:59 +0100
- Organization: Hydro
- Message-ID: <3127497B.5C7C@hda.hydro.com>
- References: <4fqh79$j4j@usenet.rpi.edu>
- NNTP-Posting-Host: 163.34.27.130
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win95; I)
- CC: jester@rpi.edu
-
- Ghost In The Machine wrote:
- >
- > Hello ....
- >
- > I'm working on a problem at work, where i need to
- > be able to generate a timestamp within the program
- > at a point, and have it accurate down to the millisecond.
- > The platform i'm using is a Zeos Pantera pentium, on
-
- The magic word: Pentium!
-
- You can use RDTSC directly, (hex code: 0Fh, 31h), an opcode that returns
- a 64-bit value in EDX:EAX. With suitable scaling, this number is the
- perfect timestamp generator!
-
-
- -Terje Mathisen (include std disclaimer) <Terje.Mathisen@hda.hydro.com>
- "almost all programming can be viewed as an exercise in caching"
-